<?php
include_once 'include/config.php';
$spec = 'templates/avod.json';
$sqlite = "paxgui_content.sqlite";

$obj = new Process($sqlite, $spec, 25);
$tasks = json_decode(file_get_contents('templates/main.json'), true);

foreach ($tasks as $type => $task) {
	$obj->start($task, $type);
}

$genreList = $obj->getGenreList();

foreach ($genreList as $type => $list) {
	echo '<h1>' . $type . '</h1>';
	$obj->buildGenreTree($list, $type);
}
?>
